//
//  WSUpdataAlter.m
//  CharonTVProject
//
//  Created by karong on 2023/8/14.
//

#import "WSUpdataAlter.h"

@interface WSUpdataAlter ()
@property (weak, nonatomic) IBOutlet UIView *mainView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;

@end

@implementation WSUpdataAlter

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titleLabel.text = WSSF(@"%@\n\n%@", appConfig.startConfig.google_prompt_update_title, appConfig.startConfig.google_prompt_update_txt);
}

- (IBAction)confirmAction:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://apps.apple.com/us/app/id6451013353"] options:@{} completionHandler:nil];
}

- (IBAction)cancelAction:(id)sender {
    [self dismiss];
}


@end
